#ifndef DOWNLOADMANAGERCONTROLLER_H
#define DOWNLOADMANAGERCONTROLLER_H
#include <QObject>
class QWebEngineDownloadRequest;
class downloaditemwidget;
class downloaditemcontroller;
class downloadmanagercontroller: public QObject
{

    Q_OBJECT

public:
    explicit downloadmanagercontroller(QObject *parent = nullptr);
    ~downloadmanagercontroller();
    QString downloadDir = "";
    void downloadRequested(QWebEngineDownloadRequest *webItem);

private:

    void add(downloaditemwidget *downloadWidget, downloaditemcontroller *newcontroller);
    void remove(downloaditemcontroller *newcontroller);
    //bool deleteFile(QString file);
    int numberOfDownloads = 0 ;
};

#endif // DOWNLOADMANAGERCONTROLLER_H
